package cn.crex1.xiaomi.dao.impl;

import java.util.List;

import cn.crex1.xiaomi.core.orm.template.QueryTemplate;
import cn.crex1.xiaomi.core.orm.template.util.QueryUtils;

import cn.crex1.xiaomi.dao.SearchDao;
import cn.crex1.xiaomi.vo.ProductVO;

public class SearchDaoImpl implements SearchDao {

	@Override
	public List<ProductVO> selectOProductByOProductName(ProductVO productVO) {
		QueryTemplate queryTemplate =QueryUtils.openTemplate();

		SearchDao categorySDao=queryTemplate.getmapper(SearchDao.class, new Object [] {"name",productVO.getName()});
		
		return categorySDao.selectOProductByOProductName(productVO);
	}

}
